package cn.wolfcode.p2p;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;

/**
 * core的配置类  @SpringBootApplication
 * 扫描在p2p目录下所有的mapper文件
 * 引入事务的配置文件
 */
@SpringBootApplication
@MapperScan(basePackages = "cn.wolfcode.p2p.*.mapper")
@ImportResource(locations="classpath:application-tx.xml")
public class ApplicationCoreConfig {

    public static void main(String[] args) {
        //启动springboot
        SpringApplication.run(ApplicationCoreConfig.class, args);
    }


}
